package com.moneywelcome.investfacade.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class ReplyVo {
    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id",required = true)
    private Integer userid;
    @NotNull(message = "评论id不能为空")
    @ApiModelProperty(value = "评论id",required = true)
    private Integer commentId;
    @ApiModelProperty(value = "上一级回复id(如果是第一级回复则不需要)")
    private Integer replyParentId;
    @Length(max = 50, min = 4, message = "评论长度须在4-50字之间")
    @ApiModelProperty(value = "回复内容",required = true)
    private String replyContent;
}
